home *** CD-ROM | disk | FTP | other *** search
/ Just Call Me Internet / Just Call Me Internet.iso / patches / rs232-2 / hardrs2.txt < prev    next >
Text File  |  1989-06-07  |  10KB  |  248 lines

  1. Oulu, Finland 1.1.-89                Kari Alakuijala (C) (Copyright)
  2.  
  3. This is a complete manual to install the physical 2nd RS-232 interface to ST.
  4. You should print this manual, and use the printed version during installation.
  5. OVERLINE THE ROWS which you have already done: it makes installation easier.
  6. If you are not at all acquainted with building electronics, you should print
  7. the manual trouble.sht, too (that's for troubleshooting).
  8.  
  9.                Block -diagramme of the circuit:
  10.  
  11.                                             ttl -level     RS-232 -level
  12. 1*ON-ON -type                               ----------     -------------
  13.   switch                      !----------!        2!----!3
  14.                           !-->!3rxclk   6!>--------!1488!--> TXD (10)
  15.   !----!                  !-->!4txclk    !         !----!
  16. !-!    !--< variable fq;  !   !          !
  17. ! ! SW !    1.2- 307.2kHz !   !          !        4!----!6
  18. !-! IT !------------------!   !   MIDI  5!>--------!1488!--> DTR (13)
  19.   ! CH !                      !   ACIA   !         !----!
  20.   !    !--< 500 kHz           !   6850   ! a diode
  21.   !----!                      !   (u20   !    /   6!----!4
  22.                               !    on   2!<--D!----!1489!<-- RXD (11)
  23.                               !    ST)   !         !----!
  24.                               !          !
  25.                               !          !
  26.                               !          !
  27.                               !----------!
  28.  
  29.  
  30.  
  31.  
  32.        Then lets go right to the point, parts needed for installation are:
  33.  
  34.                  amount     part name    description/purpose
  35.                  ------     ---------    -------------------
  36.  
  37.                  1          MC1488       TTL -level to RS -level conv.
  38.  
  39.                  1          MC1489       RS -level to TTL -level conv.
  40.  
  41.                  1          1N4148       a diode
  42.  
  43.                  1          1*ON-ON sw.  a SWITCH to swap between MIDI and
  44.                                          RS usage of ST's midi chip MC6850.
  45.  
  46.                  2 metres   isol. wire   to connect chips
  47.  
  48.                  enough     solvent      to solder
  49.  
  50.  
  51.  
  52.       Let's go on now, if you have these parts already. Otherwise I'll
  53. have to wait until you come back from grocer's...
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60. Chapter I    -INSTALLATION PROCEDURE
  61.  
  62.  
  63. Shut down your Atari ST. Disconnect your ST from all devices. Open your
  64. ST. Disconnect keyboard. Remove it. Remove screws holding the motherboard.
  65. Take the RF-shield plates protecting the motherboard away so that you
  66. only have the printed circuit board of ST. Put the motherboard away for a
  67. while.
  68.  
  69.  
  70.  
  71. Take the chip mc1488 (from your parts collection) into your hand. Look at it
  72. at the top of the chip. The top left pin is number one, and the top right is
  73. number 14.
  74.  
  75.  
  76. Look at picture below:
  77.  
  78.  
  79.                 ---\/---                         ---\/---
  80.      (-12V)  1 O!o     !O 14   (+12V)           O!o     !O 14   (+5V)
  81.                O!      !O 13                    O!      !O 13
  82.                O! 1488 !O 12                    O! 1489 !O 12
  83.                O!      !O 11                    O!      !O 11
  84.                O!      !O 10                    O!      !O 10
  85.                O!      !O  9                    O!      !O  9
  86.       (gnd)  7 O!      !O  8           (gnd)  7 O!      !O  8
  87.                 --------                         --------
  88.  
  89.                    both chips looked from top of them
  90.  
  91.  
  92. Bend all the pins individually horizontally except the numbered ones. (They
  93. are power, gnd and other pins). Find similar chips (1488 & 1489) on your ST.
  94. They should be located near the RS -port. Use your soldering station
  95. to solder these chips on the ones found in ST. Make sure that only the
  96. numbered pins (17 pieces) are soldered. The other pins (11 pieces) should be
  97. bent to horizontal position, and should have no contact with anything. From
  98. now on, when I talk about 1488/1489 or MC1488/MC1489 I mean these ones
  99. you have just installed, not those suckers found on ST originally.
  100.  
  101.  
  102. Before attempting any further operation, you should know some datas of the
  103. 1488/1489 pins which you have just bended. Have these pictures near during
  104. the installation. In text there will be for example "connect a wire between
  105. pin 2 of 1488 and pin 6 of 6850", so it's handy to have these near, if you
  106. can't remember which pin is which.
  107.  
  108.                                ---\/---
  109.                               O!o     !O
  110.           pin2:  TTL-input #1 O!      !O
  111.           pin3:  RS-output #1 O! 1488 !O
  112.           pin4:  TTL-input #2 O!----, !O
  113.           pin5:  TTL-input #2 O!--,_! !O
  114.           pin6:  RS-output #2 O!-o!&! !O
  115.                               O!      !O
  116.                                --------
  117.  
  118.              ttl to rs converter chip looked from top of it
  119.  
  120.  
  121.  
  122.                                ---\/---
  123.           pin1: RS-input #1   O!o     !O
  124.                               O!      !O
  125.           pin3: TTL-output #1 O! 1489 !O
  126.           pin4: RS-input #2   O!      !O
  127.                               O!      !O
  128.           pin6: TTL-output #2 O!      !O
  129.                               O!      !O
  130.                                --------
  131.  
  132.                rs to ttl converter chip -sight from above
  133.  
  134.  
  135. The two chips above are used to convert signals from TTL to RS-232 and back.
  136.  
  137.  
  138. The chip below a serial transmitter/receiver. It contains all circuitry to
  139. communicate with modems, altough normally in ST only the RXD/TXD pins are
  140. in use. (In MIDI usage we don't actually need DCD/DTR, do we.)
  141.  
  142.  
  143.                               -----\/-----
  144.                              O!o         !O
  145.              pin2: RX-data > O!          !O
  146.              pin3: RX-clk -> O!          !O
  147.              pin4: TX-clk -> O!          !O
  148.              pin5: DTR <---- O!          !O
  149.              pin6: TX-data < O!   ACIA   !O
  150.                              O!   6850   !O
  151.                              O!          !O
  152.                              O!          !O
  153.                              O!          !O
  154.                              O!          !O
  155.                              O!          !O
  156.                               ------------
  157.  
  158.  
  159.     on-board-MIDI -chip u20 (chip number 20 on ST) looked from top of it
  160.  
  161.  
  162. Now, cut the pins  3  and  4  on 6850 (u20) and bend them to horizontal
  163. position (the same manner we did with 1488/1489). Be veeeeery careful when
  164. cutting & bending pins. Don't cut pins 2, 5 and 6! Again, after doing this,
  165. the pins  3  and  4  on 6850 (u20) should have no contact at all neither 
  166. with motherboard nor with any other pin.
  167.  
  168. Connect the pins 3 & 4 on 6850 (u20) to each other with solder. This means,
  169. that the TX and RX clock speeds are the same.
  170.  
  171. There is a MFP 68901 -chip somewhere on the motherboard. Find it: there is
  172. a _variable_ clock rate at unused pin 13 of 68901. That's just what we need
  173. for RS!
  174.  
  175. Also, there is another 6850 (chip number u21) that is used for keyboard
  176. controlling. Find it: there is a clock rate of _500kHz_ at pins 3 & 4.
  177.  
  178.  
  179. Take the switch (from your parts collection). Bring the _variable_ frequency 
  180. to the UPPER pin of the switch and the _500kHz_ frequency to the LOWER pin. 
  181. The center pin of the switch is connected to MIDI-chip's (u20 on ST) pins 3 &
  182. 4. Doing so lets you change between the variable frequency and 500kHz. Install
  183. the switch somewhere, where you can flick it easily (without opening your ST).
  184. This provides you with an ability to use RS in position "variable" and MIDI
  185. in the position 500kHz (remember, that the clock rate is divided by 16 in
  186. 6850 --> MIDI speed is 31250 bps). With a help of 68901's internal, unused
  187. TIMER A you can choose any clock rate resulting RS -speeds between 75 and
  188. 19200bps. (More about that on document softrs2.txt). This was the clock
  189. rate for transmitter & receiver -installation. (Again, overlining the
  190. lines you have read will make the installation far easier!)
  191.  
  192. Connect a wire between pin 6 of 6850 (u20= chip number 20, i.e. MIDI -chip
  193. on the Atari ST) and pin 2 of 1488. This moves the TX -data signal to
  194. RS -encoder chip MC1488.
  195.  
  196. Connect a wire between pin 5 of 6850 (u20, midi chip) and pin 4 of 1488.
  197. This moves the DTR (hangup) -signal to RS -encoder MC1488.
  198.  
  199. Connect the diode (from your parts collection) to pin 2 of 6850 (u20 on ST)
  200. The coloured ring around the diode must point away from 6850 (u20).
  201. (Also, the anode (+) of the diode is connected to pin 2 of 6850)
  202.  
  203. Connect a wire between pin 6 of 1489 and the cathode of the diode we've just
  204. installed. (The ring around the diode (=cathode) should point towards the
  205. wire.) This was the RXD connection.
  206.  
  207.  
  208. INSTALLATION IS NOW COMPLETE, altough there is a matter of agreeing which
  209. line is to be connected to which of NC-pins on RS-port. I have them connected
  210. to NC pins 9-12 of RS-port, and since these pins are easily available to the
  211. user, I recommend that you use them too. You can even saw a hole for the 2nd
  212. RS -port and use a standard 25-pin male connector recommended for the RS-232,
  213. but why make it the hard way, anyway.
  214.  
  215. Wiring diagramme (my recommendation):
  216.  
  217.       Pin 7 of 1488 to pin  9 of your ST's RS-232 connector,
  218.  
  219.       Pin 3 of 1488 to pin 10 of your ST's RS-232 connector,
  220.  
  221.       Pin 4 of 1489 to pin 11 of your ST's RS-232 connector,
  222.  
  223.       Pin 6 of 1488 to pin 12 of your ST's RS-232 connector,
  224.  
  225.  
  226. The new pins on your ST's RS-port respectively (all are RS-232 level):
  227.  
  228.       Pin 9                Ground -as pin7 on RS-232.
  229.  
  230.       Pin 10               TXD_2  -transmit data. (works as p2 on RS-232)
  231.  
  232.       Pin 11               RXD_2  -receive data. (works as p3 on RS-232)
  233.  
  234.       Pin 12               DTR_2  -data terminal ready: used to hangup modem
  235.                                    and to prevent auto answer. (as p20 on RS)
  236.  
  237.  
  238.  
  239. NOTICE:
  240.  
  241.       DCD input is also supported by 6850 uart -chip (pin 23). Do not use 
  242.       this option, since it generates an interrupt every time DCD goes 
  243.       low to high (and jams the computer until a character is received
  244.       via MIDI or 2ND RS line). If you require DCD or other control lines,
  245.       you'd better connect them to printer port (and reverse it's direction
  246.       into input) or use joystick or other I/O ports.
  247.  
  248.